home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 3
/
Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso
/
s
/
lharcdir_p.c
< prev
next >
Wrap
AmigaDOS Script File
|
1996-05-20
|
458b
|
29 lines
.key Dir/A,Destination,Pat/K
.bra {
.ket }
.def Pat="#?"
Set CurrentDir `CD`
IF "{Destination}" EQ ""
Set Dest $CurrentDir
Else
Set Dest {Destination}
EndIf
CD "{Dir}"
CD /
Set ArcDir `BaseName "{Dir}"`
Set ArcPathName "`TackOn "$Dest" "$ArcDir"`"
Lha -a -r -x a "$ArcPathName" "$ArcDir/{Pat}"
IF $RC GT 0
Echo "Error during compression of {Dir}."
Ask "Press RETURN..."
EndIf
CD $CurrentDir
UnSet Dest
UnSet ArcDir
UnSet ArcPathName
UnSet CurrentDir